package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 张永远
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_input")
public class OrderInputDo extends Model<OrderInputDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺id
     */
    @TableField("shop_id")
    private Long shopId;

    @TableField("expire_time")
    private Date expireTime;


    /**
     * 入库单号
     */
    @TableField("order_input_number")
    private String orderInputNumber;

    /**
     * 入库仓库
     */
    @TableField("storage_id")
    private Long storageId;

    /**
     * 交付日期
     */
    @TableField("delivery_date")
    private String deliveryDate;

    /**
     * 运输方式 0散货 1整柜 2空运
     */
    @TableField("carriage_type")
    private Long carriageType;

    /**
     * 发货方式 0 自发头程 1 筋斗云头程
     */
    @TableField("send_type")
    private Long sendType;

    /**
     * 运输追踪号
     */
    @TableField("carriage_track_no")
    private String carriageTrackNo;

    /**
     * 是否是FBA转运 0 否 1是
     */
    @TableField("fba_turn")
    private Integer fbaTurn;

    /**
     * FBA NO号
     */
    @TableField("fba_no")
    private String fbaNo;

    /**
     * FBA po号
     */
    @TableField("fba_po")
    private String fbaPo;
//
//    /**
//     * 巨宇仓库进仓单
//     */
//    @TableField("jy_order_no")
//    private String jyOrderNo;
//
    /**
     * FBA po号
     */
    @TableField("fba_storage_id")
    private Long fbaStorageId;

    /**
     * fba 附件
     */
    @TableField("fba_file_id")
    private Long fbaFileId;

    /**
     * fba 附件
     */
    @TableField("clear_file_id")
    private Long clearFileId;

    /**
     * 状态
     */
    @TableField("status")
    private Long status;

    /**
     * 总体积
     */
    @TableField("volume")
    private Float volume;

    @TableField("weight")
    private Float weight;

    /**
     * 备注
     */
    @TableField("tips")
    private String tips;

    @TableField("country_name")
    private String countryName;

    /**
     * 头程费用
     */
    @TableField("sea_fee")
    private float seaFee;

    /**
     * 请报关费用
     */
    @TableField("clearance_fee")
    private float clearanceFee;

    /**
     * 服务费用
     */
    @TableField("service_fee")
    private float serviceFee;

    /**
     * 税费
     */
    @TableField("tax_fee")
    private float taxFee;

    @TableField("company_id")
    private Long companyId;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;
    @TableField("input_by")
    private Long inputBy;

    @TableField("input_time")
    private Date inputTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
